package mqpaydemo.paydemo.mq;

import mqpaydemo.paydemo.pay.request.OrdersRequest;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Description:确认的接受着
 * @Author: liujinsheng
 * @Date: 2021/9/28.
 */
@Component
public class ConfirmReciver {
    @RabbitHandler
    @RabbitListener(queues = "queue_confirm")
    public void ConfirmReciver(  OrdersRequest ordersRequest){
        System.out.println("收到的信息"+ordersRequest);

    }
}
